package com.guit.hrms.po.resume;

import com.guit.hrms.verify.resume.AtLeastOneNotEmpty;
import com.guit.hrms.verify.resume.UpdateMsg;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@AtLeastOneNotEmpty(fields = {"name", "gender", "gender", "birthDate", "phone", "email"}, group = UpdateMsg.class, message = "要进行修改的字段不能为空")
public class BasicInfo {
    @NotBlank(message = "name不能为空", groups = UpdateMsg.class)
    private String name;
    @NotBlank(message = "gender不能为空", groups = UpdateMsg.class)
    private String gender;
    @NotBlank(message = "birthDate不能为空", groups = UpdateMsg.class)
    private String birthDate;
    @NotBlank(message = "phone不能为空", groups = UpdateMsg.class)
    private String phone;
    @NotBlank(message = "email不能为空", groups = UpdateMsg.class)
    private String email;
}
